/*
 * backtrace_test.c
 *
 *  Created on: Dec 28, 2010
 *      Author: yossi
 */

#include <backtrace/backtrace.h>

#include <stdio.h>

#define NOINLINE   __attribute__ ((noinline))

static void NOINLINE bar(int a)
{
	backtrace_print(stderr);
	printf("a = %d\n", a);
}

static inline void zomg(int a)
{
	bar(a);
	printf("a=%d\n", a);
}

static void NOINLINE foo(int a)
{
	zomg(a);
	printf("a=%d\n", a);
}

int main(int argc, char **argv)
{
	foo(0);
}
